package com.wyc.apiboss.controller;

import com.wyc.apiboss.service.IDriverUserService;
import com.wyc.internalCommon.request.DriverUserDTO;
import com.wyc.internalCommon.result.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 司机信息管理
 */
@RestController
public class DriverUserController {


    @Autowired
    private IDriverUserService driverUserService;

    /**
     * 新增或修改司机信息
     * @param driverUserDTO
     * @return
     */
    @PostMapping("/driver-user")
    public ApiResult addDriverUser(@RequestBody DriverUserDTO driverUserDTO){
        return driverUserService.addDriverUser(driverUserDTO);
    }

}
